/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.cms.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户岗位组记录Entity
 * @author leo
 * @version 2017-02-25
 */
public class JobGroup extends DataEntity<JobGroup> {
	
	private static final long serialVersionUID = 1L;
	private String jcdeptid;		// erp车间id
	private String groupid;		// 岗位ID
	private String userid;		// 用户id
	private String comment;		// 备注
	
	public JobGroup() {
		super();
	}

	public JobGroup(String id){
		super(id);
	}

	@Length(min=0, max=20, message="erp车间id长度必须介于 0 和 20 之间")
	public String getJcdeptid() {
		return jcdeptid;
	}

	public void setJcdeptid(String jcdeptid) {
		this.jcdeptid = jcdeptid;
	}
	
	@Length(min=0, max=20, message="岗位ID长度必须介于 0 和 20 之间")
	public String getGroupid() {
		return groupid;
	}

	public void setGroupid(String groupid) {
		this.groupid = groupid;
	}
	
	@Length(min=0, max=10, message="用户id长度必须介于 0 和 10 之间")
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Length(min=0, max=2000, message="备注长度必须介于 0 和 2000 之间")
	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}
	
}